<template>
	<view>
		<view class="zy-title">
			{{infoDetails.title}}
		</view>
		<view class="zy-content">
			 <rich-text :nodes="infoDetails.des" bindtap="tap"></rich-text>
		</view>
	</view>
</template>

<script>
	import uniList from '@/components/uni-list/uni-list.vue'
	import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
	export default {
		components: {
			uniList,
			uniListItem
		},
		data() {
			return {
				infoDetails:{
					
				}
			};
		},
		onLoad(options) {
			console.log(options)
			// console.log(JSON.parse(options.data))
			if(options.data){
				this.infoDetails = JSON.parse(options.data); // 字符串转对象
				this.infoDetails.des = "<p>（1）诺填错宿舍地址、电话号码、快递信息等，可以直接联系客服</p><p>（2）包裹的重量或体积大小规格填写有误：我们会按照实际的规格来收费。</p>"
			}
			
			
		}
	}
</script>

<style lang="scss">
	@import '@/common/zywork-main.scss';
	.zy-title{
		padding: 0rpx $padding-left-right;
		width: 100%;
		text-align: center;
		color: $default-text-color;
		font-weight: 800;
	}
	.zy-content{
		padding: 0rpx $padding-left-right;
		margin-top: 20rpx;
	}
</style>
